package com.iretailer.report.influxdb.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.MessageFormat;
import java.time.ZonedDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/1/23 15:57
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DwellTimePZ {
    private String zoneid;

    private ZonedDateTime time;
    /**
     * 进入人数
     */
    private int entranceCount;
    /**
     * 经过人数
     */
    private int passCount;
    /**
     * 停留人数
     */
    private int stayCount;
    /**
     * 停留时长
     */
    private int secondsCount;

    public String getGroup() {
        return MessageFormat.format("{0}_{1}", zoneid, time);
    }
}
